var M=require("ming_node");


var app=M.server();
app.listen(8888);

app.set("views","./")

sseApp=M.sseServer()
app.get("/sseServer",sseApp)



let r= M.getFileDirList(".")
console.log(r)
r.push(".")
r.forEach(u=>M.watchFile(u,()=>{sseApp.send("change");}))
console.log("watch on ",r)